home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
bat.zip
/
ASM.BAT
< prev
next >
Wrap
DOS Batch File
|
1984-03-07
|
896b
|
26 lines
bat * Automatic assembly with tests
bat if .%1 <> . skip 2
bat beep cls
bat -rd Read Enter name of program to assemble (no extension) ==> %1
bat %l = %1 #
bat %i = 1 |* make sure there are no extensions
bat -checkext if %i > %l goto -checkexist
bat %a = %1 $ %i 1 |* get each char from the supplied name
bat if %a <> . %i = %i + 1 | goto -checkext
bat %i = %i - 1
bat %1 = %1 $ 1 %i |* take subportion of name without extension
bat -checkexist stateof %1.asm%2
bat if %r = 1 beep type %1.asm not found | goto -rd
bat if %r = 9 beep type %1.asm not found | goto -rd
MASM %1,%1;
BAT * Automatic test for any errors from above assembly
BAT READSCRN
BAT -TST READSCRN %A %B
BAT IF .%A = . GOTO -TST
BAT IF %A <> 0 BEEP TYPE|TYPE ASSEMBLY HALTING DUE TO ERROR|EXIT
BAT IF %B <> 0 BEEP TYPE|TYPE ASSEMBLY HALTING DUE TO ERROR|EXIT
LINK %1,%1,CON;
EXE2BIN %1 %1.COM